package com.example.demo.design.abstractFactory;

/**
 * @className: AbstractFactoryPatternDemo
 * @copyright: Copyright (C) 2019-2028, Inc. All rights reserved.
 * @company: 中兴新云.财务云
 * @author: 刘凯
 * @date: 2024/7/3
 * @Description: com.example.demo.design.abstractFactory
 */
public class AbstractFactoryPatternDemo {

    public static void main(String[] args) {
        AbstractFactory shape = FactoryProducer.getFactory("shape");
        Shape rectangle = shape.getShape("rectangle");
        rectangle.draw();

    }
}
